package wiki.generic.managers;

import java.util.HashMap;

import wiki.generic.bar.SideBar;

/**
 * 
 * @author <p><strong>JwTeam</strong></p>
 * Interfaccia di gestione delle varie barre
 */
public class BarManager {

	private HashMap<String, SideBar> bmap=new HashMap<String, SideBar>();

	private static final BarManager singleton=new BarManager();

	private BarManager() {

	}
	
	/**
	 * 
	 * @return L'unica istanza BarManager disponibile
	 */
	public static BarManager getSingleton() {
		return singleton;
	}

	/**
	 * 
	 * @return ritorna la mappa delle sidebar
	 * @see SideBar
	 */
	public HashMap<String, SideBar> getBmap() {
		return bmap;
	}

	/**
	 * 
	 * @param bmap set della mappa delle sidebar
	 */
	public void setBmap(HashMap<String, SideBar> bmap) {
		this.bmap = bmap;
	}
}
